home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ODF and printing (II)
- Sent: 8/8/96 10:11 PM
- Received: 8/9/96 8:22 AM
- From: lamiraux@ix.netcom.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >As I said, we just started with ODF the day before yesterday to
- >evaluate if we can use it. So we may not have read the critical stuff
- >in the documentation yet. So I asumed that FW_CRectShape::RenderRect
- >would take care of the transformation for different resolution
- >outputs.
- >
-
- This is not done in the FW_CRectShape. ODF has an object call
- FW_CMapping you can attach to a Graphic Context (in this case a
- FW_CViewContext). You can set your mapping object to, for example, draw
- in pixel (what ever the resolution). When no mapping object is attached
- to a graphic context 72 dpi is used. To check is your are printing or
- drawing on the screen check the ODCanvas associated with the ODFacet.
- Use ODCanvas::IsDynamic. If it returns false it means you are printing
- (We should really add a call to FW_CGraphicContext to do that). You can
- then set your mapping to take full advantage of the printer resolution.
-
- I hope I am answering your question.
-